<div class="wrap">
<h2 id="add-new-user">
<?php
echo _e("Add New Student");
?>
</h2>
<p>
<?php
echo _e("You can add a new student here.");

?>
</p>
<div id="ajax-response"></div>
<h3>
<?php
echo _e('Student Info');

?>
</h3>

<?php
$form = initForm();
echo $form->start();

?>
<table class="form-table">
<?php
$elements = initAddStudentFormElements();
foreach($elements AS $element) {
    if (isset($element) && is_array($element)) {
        echo showFormRow($form, $element);
    } else {
        zeus_do_nothing();
    }
}

?>
<tr class="form-field">
		<th scope="row">
		<label for="sex"><?php echo _e("Sex");

?></label>
		</th>
		<td>
<?php
$firstentry = _e('Please Select Sex...');
$options = getAllSex();
$options[0] = $firstentry;
$data = array("property" => array("name" => "sex_id"),
    "options" => $options,
    "current" => $_POST['sex_id']);
echo $form->addSelect($data['property'], $data['options'], $data['current']);

?>
</td>
</tr>
<tr class="form-field">
		<th scope="row">
		<label for="role"><?php echo _e("Class Name");

?></label>
		</th>
		<td>
<?php
$firstentry = _e('Please Select Class ...');
$options = getCurrentClass();
$options[0] = $firstentry;
$data = array("property" => array("name" => "myclass_id"),
    "options" => $options,
    "current" => $_POST['myclass_id']);
echo $form->addSelect($data['property'], $data['options'], $data['current']);

?>
</td>
</tr>
</table>
<h3>
<?php

?>
</h3>

<p class="submit">
<?php
echo $form->addElement("submit", array("name" => "sv-form", "id" => "wp-submit", "value" => _e("Add New Student")));

?>
</p>
<?php
echo $form->end();
$form = null;
unset($form);

?>

</div>